package com.guigu.tms.commons.entity.users;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 地址簿
 * </p>
 *
 * @author zwj
 * @since 2022-09-23
 */
@TableName("pd_address_book")
public class AddressBook implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 姓名
     */
    private String name;

    /**
     * 电话号
     */
    private String phoneNumber;

    /**
     * 分机号
     */
    private String extensionNumber;

    /**
     * 所属省份id
     */
    private Long provinceId;

    /**
     * 所属城市id
     */
    private Long cityId;

    /**
     * 所属区县id
     */
    private Long countyId;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 是否默认 0:否，1:是
     */
    private Boolean isDefault;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
    public String getExtensionNumber() {
        return extensionNumber;
    }

    public void setExtensionNumber(String extensionNumber) {
        this.extensionNumber = extensionNumber;
    }
    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }
    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }
    public Long getCountyId() {
        return countyId;
    }

    public void setCountyId(Long countyId) {
        this.countyId = countyId;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
    public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "AddressBook{" +
            "id=" + id +
            ", userId=" + userId +
            ", name=" + name +
            ", phoneNumber=" + phoneNumber +
            ", extensionNumber=" + extensionNumber +
            ", provinceId=" + provinceId +
            ", cityId=" + cityId +
            ", countyId=" + countyId +
            ", address=" + address +
            ", companyName=" + companyName +
            ", isDefault=" + isDefault +
            ", createTime=" + createTime +
        "}";
    }
}
